Difference between revisions of "Template:Sup"

From Crusader Kings II Wiki
Jump to navigation Jump to search
m (Link)
(Copied EU4 version over)
 
Line 1: Line 1:
<includeonly>{{#if:{{{2|}}}|<span class="inline-sup" style="background-color:{{#ifeq:{{{cat|Verification needed}}}|0|#f9f9f9|#fff9f9}}; color:DarkSlateGray;border:1px solid {{#ifeq:{{{cat|Verification needed}}}|0|#dcdcdc|#ffdcdc}}">{{{2|}}}</span>&nbsp;}}<sup class="inline-sup" style="white-space:nowrap;">[<i>{{{1|Verification needed}}}</i>]</sup>{{#ifeq:{{{cat|Verification needed}}}|0||[[Category:{{{cat|Verification needed}}}]]}}</includeonly><noinclude>
+
<includeonly>{{#if:{{{2|}}}|<span class="inline-sup" style="background-color:{{#ifeq:{{{cat|Verification needed}}}|0|#f9f9f9|#fff9f9}}; color:DarkSlateGray;border:1px solid {{#ifeq:{{{cat|Verification needed}}}|0|#dcdcdc|#ffdcdc}}">{{{2|}}}</span>&nbsp;}}<sup class="inline-sup" style="white-space:nowrap;">[<i>{{{1}}}</i>]</sup>{{#ifeq:{{{cat|Verification needed}}}|0||[[Category:{{{cat|Verification needed}}}]]}}</includeonly><noinclude>
 
==Usage==
 
==Usage==
 
For wiki editors' inline critical notes <sup class="inline-sup" style="white-space:nowrap;">[<i>Such as this?</i>]</sup>
 
For wiki editors' inline critical notes <sup class="inline-sup" style="white-space:nowrap;">[<i>Such as this?</i>]</sup>
 +
===OPTIONAL: Categorisation <nowiki>{{{cat|}}}</nowiki>===
 +
<code><nowiki>{{sup|...|cat=...}}</nowiki></code> overrides the default injected [[:Category:Verification needed]].
  
<pre>{{sup}}</pre>
+
cat=0 disables categorisation.
{{sup}}
 
  
Optional inline note <nowiki>{{{1}}}</nowiki>:
+
===OPTIONAL: Referencing {{{2}}}===
<pre>{{sup|inline note}}</pre>
+
<code><nowiki>{{Sup|... superscript note ...|... text to interrogate ...}}</nowiki></code>
{{sup|inline note}}
 
  
Optional referencing <nowiki>{{{2}}}</nowiki>:
+
E.g:
<pre>{{sup|inline note|referenced text}}</pre>
 
{{sup|inline note|referenced text}}
 
  
Optional categorisation <nowiki>{{{cat|}}}</nowiki>
+
<nowiki>Whilst milk is almost always white, {{sup|Bollocks|cheese is universally black}}</nowiki>"
<pre>{{sup|cat=...}}</pre>
+
 
Overrides the default injected [[:Category:Verification needed]].
+
... renders...
 +
 
 +
Whilst milk is almost always white, <span class="inline-sup" style="background-color:#fff9f9; color:DarkSlateGray; border:1px solid #ffdcdc">cheese is universally black</span> <sup class="inline-sup" style="white-space:nowrap;">[<i>Bollocks</i>]</sup>
  
Taken from [[eu4:Template:Sup]]
 
 
[[Category:Templates]]
 
[[Category:Templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 16:06, 7 November 2017

Usage

For wiki editors' inline critical notes [Such as this?]

OPTIONAL: Categorisation {{{cat|}}}

{{sup|...|cat=...}} overrides the default injected Category:Verification needed.

cat=0 disables categorisation.

OPTIONAL: Referencing {{{2}}}

{{Sup|... superscript note ...|... text to interrogate ...}}

E.g:

Whilst milk is almost always white, {{sup|Bollocks|cheese is universally black}}"

... renders...

Whilst milk is almost always white, cheese is universally black [Bollocks]