Difference between revisions of "Template:Fix"

From CWCki
Jump to navigation Jump to search
(this is inefficient, but it was the only way i could get this not to red-link out. if a more experienced editor knows how to do this with less code, feel free to go at it)
(nocat)
Line 1: Line 1:
<sup>{{#ifexist: {{{link|{{{text}}}}}} | [[{{{link|{{{text}}}}}}|<span title="{{{tooltip|}}}"><nowiki>[</nowiki>''{{{text}}}''<nowiki>]</nowiki>]]|<span title="{{{tooltip|}}}"><nowiki>[</nowiki>''{{{text|needs fix}}}''<nowiki>]</nowiki>}}</span></sup><includeonly>{{{cat|}}}</includeonly><noinclude>
<sup><!--
 
LINK
 
-->{{#ifexist: {{{link|{{{text}}}}}} | [[{{{link|{{{text}}}}}}<!--
 
HOVER TEXT
 
-->|<span title="{{{tooltip|}}}"><nowiki>[</nowiki>''{{{text}}}''<nowiki>]</nowiki>]]|<span title="{{{tooltip|}}}"><!--
 
ACTUAL DISPLAYED TEXT
 
--><nowiki>[</nowiki>''{{{text|needs fix}}}''<nowiki>]</nowiki>}}</span></sup><!--
 
CATEGORIES
 
--><includeonly>{{#if: {{{nocat|}}} |  | {{{cat|[[Category:Articles needing cleanup]]}}}}}</includeonly><noinclude>
{{Usage|1=Meta-template for having inline notices. If <code>link</code> is left blank, it will default to whatever the text is, as long as that is a valid link.
{{Usage|1=Meta-template for having inline notices. If <code>link</code> is left blank, it will default to whatever the text is, as long as that is a valid link.
'''<pre>Chris is literally Hitler.{{Fix|text=a-logging|tooltip=This is unnecessary.}}</pre>'''  
'''<pre>Chris is literally Hitler.{{Fix|text=a-logging|tooltip=This is unnecessary.|nocat=true}}</pre>'''  




- Displays:Chris is literally Hitler.{{Fix|text=a-logging|tooltip=This is unnecessary.}}
- Displays:Chris is literally Hitler.{{Fix|text=a-logging|tooltip=This is unnecessary.|nocat=true}}
}}
}}
[[Category: Inline templates|{{PAGENAME}}]]</noinclude>
[[Category: Inline templates|{{PAGENAME}}]]</noinclude>

Revision as of 15:47, 19 October 2021

[needs fix]

Usage

These usage notes will not be included in articles bearing this template.

Meta-template for having inline notices. If link is left blank, it will default to whatever the text is, as long as that is a valid link.

Chris is literally Hitler.{{Fix|text=a-logging|tooltip=This is unnecessary.|nocat=true}}


- Displays:Chris is literally Hitler.[a-logging]