Difference between revisions of "Template:Errata"
(proposal) |
Griceylipper (talk | contribs) m (6 revisions imported: Import templates for formatting Jakobsen snippets) |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | <!--1=original;2=modified;3=link;4=view; | + | <includeonly><!--1=original;2=modified;3=link;4=view;5=mark |
-->{{#switch:{{lc:{{{view|{{{4|{{NAMESPACE}}}}}}}}}}<!-- | -->{{#switch:{{lc:{{{view|{{{4|{{NAMESPACE}}}}}}}}}}<!-- | ||
-->|page =<!-- In page name space show original content with optional link to errata detail | -->|page =<!-- In page name space show original content with optional link to errata detail | ||
− | --><span style="background-color:palegreen" title="Errata: original content shown<!-- | + | --><span style="background-color:{{{mark|{{{5|palegreen}}}}}};display:inline-block;" title="Errata: original content shown<!-- |
-->{{#if:{{{link|{{{3|}}}}}}|. Follow link for notes}}<!-- | -->{{#if:{{{link|{{{3|}}}}}}|. Follow link for notes}}<!-- | ||
-->."><!-- | -->."><!-- | ||
-->{{{original|{{{1|}}}}}}<!-- | -->{{{original|{{{1|}}}}}}<!-- | ||
--></span><!-- | --></span><!-- | ||
− | -->{{#tag:ref|Correction: <span style="background-color:palegreen">{{{modified|{{{2|}}}}}}</span><!-- | + | -->{{#tag:ref|Correction: <span style="background-color:{{{mark|{{{5|palegreen}}}}}};display:inline-block;">{{{original|{{{1|}}}}}}</span> should be amended to <span style="background-color:{{{mark|{{{5|palegreen}}}}}};display:inline-block;">{{{modified|{{{2|}}}}}}</span><!-- |
− | -->{{#if:{{{link|{{{3|}}}}}}|: [[{{{link|{{{3}}}}}}{{!}} | + | -->{{#if:{{{link|{{{3|}}}}}}|: [[{{{link|{{{3}}}}}}{{!}}detail]]}}<!-- |
-->|group="errata"}}<!-- | -->|group="errata"}}<!-- | ||
-->|#default=<!-- In main (or any other name space) show modified content with optional link to errata detail | -->|#default=<!-- In main (or any other name space) show modified content with optional link to errata detail | ||
− | --><span title="Errata: modified content shown<!-- | + | --><span style="background-color:{{{mark|{{{5|transparent}}}}}};display:inline-block;" title="Errata: modified content shown<!-- |
-->{{#if:{{{link|{{{3|}}}}}}|. Follow link for notes}}<!-- | -->{{#if:{{{link|{{{3|}}}}}}|. Follow link for notes}}<!-- | ||
-->."><!-- | -->."><!-- | ||
-->{{{modified|{{{2|}}}}}}<!-- | -->{{{modified|{{{2|}}}}}}<!-- | ||
--></span><!-- | --></span><!-- | ||
− | -->{{#tag:ref|Original: {{{original|{{{1|}}}}}}<!-- | + | -->{{#tag:ref|Original: <span style="background-color:{{{mark|{{{5|transparent}}}}}};display:inline-block;">{{{original|{{{1|}}}}}}</span> was amended to <span style="background-color:{{{mark|{{{5|transparent}}}}}};display:inline-block;">{{{modified|{{{2|}}}}}}</span><!-- |
− | -->{{#if:{{{link|{{{3|}}}}}}|: [[{{{link|{{{3}}}}}}{{!}} | + | -->{{#if:{{{link|{{{3|}}}}}}|: [[{{{link|{{{3}}}}}}{{!}}detail]]}}<!-- |
-->|group="errata"}}<!-- | -->|group="errata"}}<!-- | ||
-->}}<!-- end switch | -->}}<!-- end switch | ||
− | --><noinclude>{{documentation}}</noinclude> | + | --></includeonly><noinclude>{{documentation}}</noinclude> |
Latest revision as of 22:43, 11 March 2021
Co dovran ins quest model?
La chascha alva cuntegna infurmaziuns davart il scopo ed il diever da quest model.
Annote published corrections to text.
Some publications contain an errata page which can result in a conflict for proofreaders: how to represent text "true-to-scan" (in the Page: view) yet still "accurate-to-intention" when presented in its final form. This template represents an attempt to address this issue in a uniform fashion.
Usage
{{errata|original content|corrected content|discussion link|viewing name space}}
The following (or equivalent) is always required by this template in order to provide a display area for alternate content (and optional linkage) display:
{{smallrefs|group="errata"}}
Parameters
Parameter | Description | Type | Status | |
---|---|---|---|---|
original | 1
| Original page content prior to correction. | String | required |
modified | 2
| Final page content after correction has been applied. | String | required |
link | 3
| Optional link to published errata or other explanation of alteration. | String | optional |
view | 4
| Optional name space specification for testing or demonstration purposes to force apparent name space to be used for interpretation of display. If unspecified current display context will be used. Currently, only 'page' is treated specially. | String | optional |
mark | 5
| Optional colour control for highlighting changes (default is 'palegreen' in Page: 'transparent' elsewhere; suggest use of muted 'fluorescent' colours.) If specified will apply equally to all name space views. | String | optional |
Examples
{{errata|old|new}}
{{smallrefs|group="errata"}}
renders as:
default: new[errata 1]
in Page: old[errata 2]
{{errata|old|new|template:errata/doc}}
{{smallrefs|group="errata"}}
renders as:
default: new[errata 1]
in Page: old[errata 2]
{{errata|old|new|template:errata/doc|mark=yellow}}
{{smallrefs|group="errata"}}
renders as:
default: new[errata 1]
in Page: old[errata 2]
Questa bordura na cumpara betg en l'artitgel.
Ils editurs pon experimentar sin la pagina da provas.
Per plaschair agiunscha las categorias sin la sutpagina da documentaziun ed ils interwikis sin Wikidata. Sutpaginas da quest model.