Template:Inlineref: Difference between revisions
Template page
More languages
More actions
m tweak |
No edit summary |
||
| (6 intermediate revisions by 4 users not shown) | |||
| Line 1: | Line 1: | ||
<includeonly><span id="{{{1}}}">{{#switch:{{{bold}}} | N={{{2|1}}} | Y='''{{{2|1}}}''' | #default='''{{{2|1}}}'''}}</span></includeonly><noinclude> | <includeonly><span id="{{{1}}}">{{#switch:{{{bold}}} | N={{{2|{{{1}}}}}} | Y='''{{{2|{{{1}}}}}}''' | #default='''{{{2|{{{1}}}}}}'''}}</span></includeonly><noinclude> | ||
= Documentation = | = Documentation = | ||
To be used for terms defined in such lists as [[List of terms (TOS)]], [[List of terms (RDM)]], et al. Basically acts as an anchor, so that redirects can bring the user to the right term, instead of the section that term is in -- if applicable. | To be used for terms defined in such lists as [[List of terms (TOS)]], [[List of terms (RDM)]], et al. Basically acts as an anchor, so that redirects can bring the user to the right term, instead of the section that term is in -- if applicable. | ||
| Line 7: | Line 7: | ||
<pre> | <pre> | ||
{{inlineref | {{inlineref | ||
| | |ID | ||
| | |Term | ||
| bold= | |bold= | ||
}} | }} | ||
</pre> | </pre> | ||
| Line 15: | Line 15: | ||
=== Required parameters === | === Required parameters === | ||
* '''1:''' (ID) The short, unique id for the term so that it can be passed off as a link, which should '''not''' have spaces. If you need a | * '''1:''' (ID) The short, unique id for the term so that it can be passed off as a link, which should '''not''' have spaces. If you need a space between two words, use the underscore character (_). For example, ''[[Encyclopedia Galactica]]'' has a term for "Cygnus", with the ''id'' of "Cygnus", which can be linked to in other article like so: | ||
*: <code><nowiki>[[Encyclopedia Galactica#Cygnus|Cygnus]]</nowiki></code> | *: <code><nowiki>[[Encyclopedia Galactica#Cygnus|Cygnus]]</nowiki></code> | ||
* '''2:''' (Term) The term you are defining. This can have spaces. | * '''2:''' (Term) The term you are defining. This can have spaces. | ||
| Line 21: | Line 21: | ||
=== Optional parameters === | === Optional parameters === | ||
* '''bold:''' Turns on or off the option for the term to be '''bold'''faced. By default, the term is '''boldfaced'''. | * '''bold:''' Turns on or off the option for the term to be '''bold''' faced. By default, the term is '''boldfaced'''. | ||
** To turn off the boldface, simply add <code>N</code> (uppercase "n") to the template | ** To turn off the boldface, simply add <code>N</code> (uppercase "n") to the template | ||
| Line 27: | Line 27: | ||
[[Category:Citation templates]] | [[Category:Citation templates]] | ||
[[Category:Templates using ParserFunctions]]</noinclude> | [[Category:Templates using ParserFunctions]] | ||
[[de:Vorlage:Inlineref]]<templatedata> | |||
{ | |||
"params": { | |||
"1": { | |||
"type": "line" | |||
}, | |||
"2": {}, | |||
"bold": { | |||
"suggestedvalues": [ | |||
"Y", | |||
"N" | |||
] | |||
} | |||
} | |||
} | |||
</templatedata></noinclude> | |||
Latest revision as of 17:44, 1 February 2025
Documentation
To be used for terms defined in such lists as List of terms (TOS), List of terms (RDM), et al. Basically acts as an anchor, so that redirects can bring the user to the right term, instead of the section that term is in -- if applicable.
Usage
{{inlineref
|ID
|Term
|bold=
}}
Required parameters
- 1: (ID) The short, unique id for the term so that it can be passed off as a link, which should not have spaces. If you need a space between two words, use the underscore character (_). For example, Encyclopedia Galactica has a term for "Cygnus", with the id of "Cygnus", which can be linked to in other article like so:
[[Encyclopedia Galactica#Cygnus|Cygnus]]
- 2: (Term) The term you are defining. This can have spaces.
Optional parameters
- bold: Turns on or off the option for the term to be bold faced. By default, the term is boldfaced.
- To turn off the boldface, simply add
N(uppercase "n") to the templateNo description.
Template parameters[Edit template data]
Parameter Description Type Status 1 1no description
Line optional 2 2no description
Unknown optional bold boldno description
- Suggested values
YN
Unknown optional
- To turn off the boldface, simply add