User talk:Shoejar/t:src
From Wikipedia, the free encyclopedia
[edit] Source
A template for showcasing template source-code (or any plain text, for that matter). |
<table style="border:1px dashed slategrey; background:ivory; width:90%; font-family:courier new; margin-left:0.5em"><tr style="color:slategrey"> <td style="border-bottom:1px solid slategrey">{{{2|--}}}</td> </tr><tr> <td>{{msgnw:{{{1}}}}}</td> </tr></table> |
[edit] Usage
For some example template, say Template:T0:
[edit] 1
{{User:Shoejar/t:src|T0}}
- gives
-- |
start-{{{1}}}-end |
[edit] 2
{{User:Shoejar/t:src|T0|
T0 is an example template used in [[Help:Template]].
...}}
- gives
T0 is an example template used in Help:Template. ... |
start-{{{1}}}-end |
[edit] Notes
- Doesn't turn out nicely if the template page has a large noinclude element, especially because of:
- Problems with newlines in markup.