Тестовые примеры, 12 июня 2013 г.
Подтверждающий пример в описании |
---|
{{Развернуть раздел | {{subst: DATE}}}} |
Текущий: |
Песочница: |
Расширенный код |
---|
Current: <table class="box-Expand_section plainlinks metadata ambox mbox-small-left ambox-content" role="presentation"><tr><td class="mbox-image">[[File:Wiki letter w cropped.svg|20px|alt=[icon]]]td><td class="mbox-text"><div class="mbox-text-span">This section '''needs expansion'''. You can help by [//en.wikipedia.org/w/index.php?title=Template:Expand_section/testcases&action=edit§ion= adding to it].<span class="hide-when-compact"> ([[Template talk:Expand section/testcases##|talk]])span> <small class='date-container'>''(<span class='date'>June 2013span>)''small>div>td>tr>table>[[Category:Articles using small message boxes]] | Sandbox: <table class="box-Expand_section plainlinks metadata ambox mbox-small-left ambox-content" role="presentation"><tr><td class="mbox-image">[[File:Wiki letter w cropped.svg|20px|alt=[icon]]]td><td class="mbox-text"><div class="mbox-text-span">This section '''needs expansion'''. You can help by [//en.wikipedia.org/w/index.php?title=Template:Expand_section/testcases&action=edit§ion= adding to it].<span class="hide-when-compact"> ([[Template talk:Expand section/testcases##|talk]])span> <small class='date-container'>''(<span class='date'>June 2013span>)''small>div>td>tr>table>[[Category:Articles using small message boxes]] | |
Но действительно ли это работает: попытка более раннего свидания |
---|
{{Expand section | 1 января 2010 г.}} |
Текущий: |
Песочница: |
Расширенный код |
---|
Current: <table class="box-Expand_section plainlinks metadata ambox mbox-small-left ambox-content" role="presentation"><tr><td class="mbox-image">[[File:Wiki letter w cropped.svg|20px|alt=[icon]]]td><td class="mbox-text"><div class="mbox-text-span">This section '''needs expansion''' with: 1 January 2010. You can help by [//en.wikipedia.org/w/index.php?title=Template:Expand_section/testcases&action=edit§ion= adding to it].<span class="hide-when-compact"> ([[Template talk:Expand section/testcases##|talk]])span>div>td>tr>table>[[Category:Articles using small message boxes]] | Sandbox: <table class="box-Expand_section plainlinks metadata ambox mbox-small-left ambox-content" role="presentation"><tr><td class="mbox-image">[[File:Wiki letter w cropped.svg|20px|alt=[icon]]]td><td class="mbox-text"><div class="mbox-text-span">This section '''needs expansion''' with: 1 January 2010. You can help by [//en.wikipedia.org/w/index.php?title=Template:Expand_section/testcases&action=edit§ion= adding to it].<span class="hide-when-compact"> ([[Template talk:Expand section/testcases##|talk]])span>div>td>tr>table>[[Category:Articles using small message boxes]] | |
Итак, в {{ Ambox }} есть специальный код, который проверяет {{subst: Date}}.
Когда я смотрю на эту сохраненную страницу, я вижу, что {{subst: DATE}} фактически изменено на "date = June 2013". (Cf {{subst: CURRENTDATE}}: "03:01, среда, 12 июня 2013 г. ( UTC )") Обратите внимание также на {{DATE}}: "date = {{subst: CURRENTMONTHNAME}} {{subst: CURRENTYEAR}} ", который будет идентичным, когда я сохраню , но разница в том, что он не будет добавлен в предварительный просмотр, пока страница шаблона не будет использована (расшифрована).
Тестовые примеры, 22 декабря 2011 г.
Параметр |with= эквивалентен|1= |
---|
{{Развернуть раздел / песочницу | with = Foo bar baz quux | {{subst: DATE}}}} |
Старый {{{1}}}: |
Новый {{{with}}}: |
Расширенный код |
---|
Old {{{1}}}: <table class="box-Expand_section plainlinks metadata ambox mbox-small-left ambox-content" role="presentation"><tr><td class="mbox-image">[[File:Wiki letter w cropped.svg|20px|alt=[icon]]]td><td class="mbox-text"><div class="mbox-text-span">This section '''needs expansion''' with: Foo bar baz quux. You can help by [//en.wikipedia.org/w/index.php?title=Template:Expand_section/testcases&action=edit§ion= adding to it].<span class="hide-when-compact"> ([[Template talk:Expand section/testcases##|talk]])span> <small class='date-container'>''(<span class='date'>December 2011span>)''small>div>td>tr>table>[[Category:Articles using small message boxes]] | New {{{with}}}: <table class="box-Expand_section plainlinks metadata ambox mbox-small-left ambox-content" role="presentation"><tr><td class="mbox-image">[[File:Wiki letter w cropped.svg|20px|alt=[icon]]]td><td class="mbox-text"><div class="mbox-text-span">This section '''needs expansion''' with: Foo bar baz quux. You can help by [//en.wikipedia.org/w/index.php?title=Template:Expand_section/testcases&action=edit§ion= adding to it].<span class="hide-when-compact"> ([[Template talk:Expand section/testcases##|talk]])span> <small class='date-container'>''(<span class='date'>December 2011span>)''small>div>td>tr>table>[[Category:Articles using small message boxes]] | |
Разрыв строки в коде исправляет ошибки отображения начала строки (списки, отступы и т. Д.) |
---|
{{Развернуть раздел / песочницу | 1 = * Foo bar * Баз кукс | {{subst: DATE}} |
Старый: |
Новый: |
Расширенный код |
---|
Old: <table class="box-Expand_section plainlinks metadata ambox mbox-small-left ambox-content" role="presentation"><tr><td class="mbox-image">[[File:Wiki letter w cropped.svg|20px|alt=[icon]]]td><td class="mbox-text"><div class="mbox-text-span">This section '''needs expansion''' with: *Foo bar *Baz quux. You can help by [//en.wikipedia.org/w/index.php?title=Template:Expand_section/testcases&action=edit§ion= adding to it].<span class="hide-when-compact"> ([[Template talk:Expand section/testcases##|talk]])span> <small class='date-container'>''(<span class='date'>December 2011span>)''small>div>td>tr>table>[[Category:Articles using small message boxes]] | New: <table class="box-Expand_section plainlinks metadata ambox mbox-small-left ambox-content" role="presentation"><tr><td class="mbox-image">[[File:Wiki letter w cropped.svg|20px|alt=[icon]]]td><td class="mbox-text"><div class="mbox-text-span">This section '''needs expansion''' with: *Foo bar *Baz quux. You can help by [//en.wikipedia.org/w/index.php?title=Template:Expand_section/testcases&action=edit§ion= adding to it].<span class="hide-when-compact"> ([[Template talk:Expand section/testcases##|talk]])span> <small class='date-container'>''(<span class='date'>December 2011span>)''small>div>td>tr>table>[[Category:Articles using small message boxes]] | |
Разрыв строки в коде - текущее решение |
---|
{{Развернуть раздел / песочница | 1 = * Foo bar * Баз кукс | {{subst: DATE}} |
Старый: |
Новый: |
Расширенный код |
---|
Old: <table class="box-Expand_section plainlinks metadata ambox mbox-small-left ambox-content" role="presentation"><tr><td class="mbox-image">[[File:Wiki letter w cropped.svg|20px|alt=[icon]]]td><td class="mbox-text"><div class="mbox-text-span">This section '''needs expansion''' with: *Foo bar *Baz quux. You can help by [//en.wikipedia.org/w/index.php?title=Template:Expand_section/testcases&action=edit§ion= adding to it].<span class="hide-when-compact"> ([[Template talk:Expand section/testcases##|talk]])span> <small class='date-container'>''(<span class='date'>December 2011span>)''small>div>td>tr>table>[[Category:Articles using small message boxes]] | New: <table class="box-Expand_section plainlinks metadata ambox mbox-small-left ambox-content" role="presentation"><tr><td class="mbox-image">[[File:Wiki letter w cropped.svg|20px|alt=[icon]]]td><td class="mbox-text"><div class="mbox-text-span">This section '''needs expansion''' with: *Foo bar *Baz quux. You can help by [//en.wikipedia.org/w/index.php?title=Template:Expand_section/testcases&action=edit§ion= adding to it].<span class="hide-when-compact"> ([[Template talk:Expand section/testcases##|talk]])span> <small class='date-container'>''(<span class='date'>December 2011span>)''small>div>td>tr>table>[[Category:Articles using small message boxes]] | |
СТАРОЕ тестирование |
---|
| Текущий | Песочница |
---|
{{развернуть раздел}} | | | {{развернуть раздел | category =}} | | | {{развернуть раздел | примеры и дополнительные цитаты}} | | | {{развернуть раздел | talksection = Пример}} | | | {{развернуть раздел | talksection = Пример | small = no}} | | | {{развернуть раздел | примеры и дополнительные цитаты | talksection = пример}} | | | {{развернуть раздел | catanyway = | date = март 2009 г.}} | | | |