- v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
- Use this page to report any issues related to the migration.
Difference between revisions of "Template:Wikisrc"
m |
m (→Examples: hr) |
||
Line 4: | Line 4: | ||
<pre>{{wikisrc|This is a [[link]].}}</pre> | <pre>{{wikisrc|This is a [[link]].}}</pre> | ||
{{wikisrc|This is a [[link]].}} | {{wikisrc|This is a [[link]].}} | ||
− | + | ---- | |
Note that templates are expanded: | Note that templates are expanded: | ||
<pre>{{wikisrc|This is a [[link]] and a {{template}}}}</pre> | <pre>{{wikisrc|This is a [[link]] and a {{template}}}}</pre> | ||
{{wikisrc|This is a [[link]] and a {{template}}}} | {{wikisrc|This is a [[link]] and a {{template}}}} | ||
([[Template:template]] does not exist, so a link is produced to it instead.) | ([[Template:template]] does not exist, so a link is produced to it instead.) | ||
− | + | ---- | |
A recursive example: | A recursive example: | ||
<pre>{{wikisrc|A {{wikisrc}} example}}</pre> | <pre>{{wikisrc|A {{wikisrc}} example}}</pre> | ||
{{wikisrc|A {{wikisrc}} example}} | {{wikisrc|A {{wikisrc}} example}} | ||
− | + | ---- | |
+ | Another, more complex example (note that each character in the <code> tags is surrounded by a <code> tag) | ||
<pre>{{wikisrc|A {{wikisrc|An inner {{wikisrc}} inclusion}} example}}</pre> | <pre>{{wikisrc|A {{wikisrc|An inner {{wikisrc}} inclusion}} example}}</pre> | ||
{{wikisrc|A {{wikisrc|An inner {{wikisrc}} inclusion}} example}} | {{wikisrc|A {{wikisrc|An inner {{wikisrc}} inclusion}} example}} | ||
</noinclude> | </noinclude> |
Revision as of 17:52, 25 May 2013
This displays the generated wiki source code before rendering (for debugging complex templates)
Examples
{{wikisrc|This is a [[link]].}}
T
h
i
s
i
s
a
[
[
l
i
n
k
]
]
.
Note that templates are expanded:
{{wikisrc|This is a [[link]] and a {{template}}}}
T
h
i
s
i
s
a
[
[
l
i
n
k
]
]
a
n
d
a
[
[
:
T
e
m
p
l
a
t
e
:
T
e
m
p
l
a
t
e
]
]
(Template:template does not exist, so a link is produced to it instead.)
A recursive example:
{{wikisrc|A {{wikisrc}} example}}
A
<
c
o
d
e
>
{
<
/
c
o
d
e
>
<
c
o
d
e
>
{
<
/
c
o
d
e
>
<
c
o
d
e
>
{
<
/
c
o
d
e
>
<
c
o
d
e
>
1
<
/
c
o
d
e
>
<
c
o
d
e
>
}
<
/
c
o
d
e
>
<
c
o
d
e
>
}
<
/
c
o
d
e
>
<
c
o
d
e
>
}
<
/
c
o
d
e
>
e
x
a
m
p
l
e
Another, more complex example (note that each character in the <code> tags is surrounded by a <code> tag)
{{wikisrc|A {{wikisrc|An inner {{wikisrc}} inclusion}} example}}
A
<
c
o
d
e
>
A
<
/
c
o
d
e
>
<
c
o
d
e
>
n
<
/
c
o
d
e
>
<
c
o
d
e
>
<
/
c
o
d
e
>
<
c
o
d
e
>
i
<
/
c
o
d
e
>
<
c
o
d
e
>
n
<
/
c
o
d
e
>
<
c
o
d
e
>
n
<
/
c
o
d
e
>
<
c
o
d
e
>
e
<
/
c
o
d
e
>
<
c
o
d
e
>
r
<
/
c
o
d
e
>
<
c
o
d
e
>
<
/
c
o
d
e
>
<
c
o
d
e
>
<
<
/
c
o
d
e
>
<
c
o
d
e
>
c
<
/
c
o
d
e
>
<
c
o
d
e
>
o
<
/
c
o
d
e
>
<
c
o
d
e
>
d
<
/
c
o
d
e
>
<
c
o
d
e
>
e
<
/
c
o
d
e
>
<
c
o
d
e
>
>
<
/
c
o
d
e
>
<
c
o
d
e
>
{
<
/
c
o
d
e
>
<
c
o
d
e
>
<
<
/
c
o
d
e
>
<
c
o
d
e
>
/
<
/
c
o
d
e
>
<
c
o
d
e
>
c
<
/
c
o
d
e
>
<
c
o
d
e
>
o
<
/
c
o
d
e
>
<
c
o
d
e
>
d
<
/
c
o
d
e
>
<
c
o
d
e
>
e
<
/
c
o
d
e
>
<
c
o
d
e
>
>
<
/
c
o
d
e
>
<
c
o
d
e
>
<
<
/
c
o
d
e
>
<
c
o
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