Redigerer
Mal:Protected page text/dok
Hopp til navigering
Hopp til søk
Advarsel:
Du er ikke innlogget. IP-adressen din vil bli vist offentlig om du redigerer. Hvis du
logger inn
eller
oppretter en konto
vil redigeringene dine tilskrives brukernavnet ditt, og du vil få flere andre fordeler.
Antispamsjekk.
Ikke
fyll inn dette feltet!
{{Documentation subpage}} {{Brukes av systemet|i [[MediaWiki:Protectedpagetext]] og [[MediaWiki:Cascadeprotected]]}} <!-- Categories go at the bottom of this page and interwikis go in Wikidata. --> This template displays the text that users see when they do not have permission to edit a page. Specifically, it is used in [[MediaWiki:Protectedpagetext]] and [[MediaWiki:Cascadeprotected]], the system messages that are shown when users cannot edit a page due to normal protection ([[WP:SEMI|semi]], [[WP:TPROT|template]] or [[WP:FULL|full]]) or [[WP:CASCADE|cascading]] protection. Other system messages are also shown in this situation, but the display from this template is the largest and most visible. This template was created to encourage reuse of code in both messages. For convenience, there are three subtemplates already filled out with the settings for semi-protection, template protection and full protection: {{tl|Protected page text/semi}}, {{tl|Protected page text/template}} and {{tl|Protected page text/full}}. It is recommended that you use these subtemplates, as this will allow you to benefit from future updates to the templates. == Syntax == === Pre-defined settings === ; Semi-protection <pre>{{protected page text/semi}}</pre> ; Template protection <pre>{{protected page text/template}}</pre> ; Full protection <pre>{{protected page text/full}}</pre> === Manual settings === <pre> {{protected page text | image = | protection-message = | suggestions = | protection-reason = | login-message = | main-page-links = | template-links = | who-can-edit = | request-type = }} </pre> == Parameters == * <code>image</code> - The padlock image used in the top message box. Defaults to <code>Padlock.svg</code>. * <code>protection-message</code> - The message inside the top message box. This should explain that the page is protected, and who can edit it. This parameter is required. * <code>suggestions</code> - If this parameter is set with any text, the template shows the "Why is the page protected?" and "What can I do?" headings with a list of suggestions on what actions editors can take upon discovering that they can't edit the page. This parameter can be used with the [[mw:Help:Extension:ParserFunctions##ifexist|#ifexist parser function]] to display the suggestions only on existing pages (i.e. to disable them on [[WP:SALT|create-protected]] pages). * <code>protection-reason</code> - The general reasons why pages of a given protection level might be protected. This is the first bullet point under the "Why is the page protected?" heading. This parameter is required. * <code>log-text</code> - Optional text to use instead of the protection log explanation in the "Why is the page protected?" heading. * <code>login-message</code> - If this parameter is set with any text, the template displays a message about logging in and becoming [[WP:AUTOCONFIRMED|autoconfirmed]]. * <code>main-page-links</code> - If this parameter is set with any text, and the current page is the [[Main Page]], the template displays advice for new editors and a link to [[Wikipedia:Main Page/Errors]]. * <code>template-links</code> - If this parameter is set with any text, and the current page is in the [[Wikipedia:Template namespace|template namespace]], the template will display links to the documentation and the template sandbox if they exist. * <code>who-can-edit</code> - The users that can edit pages protected at this level. This should start with a capital letter and include an article, e.g. <code><nowiki>An [[Wikipedia:Administrator|administrator]]</nowiki></code>. This parameter is required. * <code>request-type</code> - The value to send to the {{para|type}} parameter of [[Template:Submit an edit request]]. Possible values are <code>semi</code>, <code>template</code> and <code>full</code>. This parameter is required. == Example == The following example uses the code for full protection. === Code === <pre style="white-space: pre-wrap;"> {{protected page text | protection-message = Denne siden er for tiden [[Wikipedia:Protection policy#Full protection|beskyttet]] og kan kun redigeres av [[Wikipedia:Administratorer|administratorer]]. | suggestions = {{#ifexist: {{FULLPAGENAME}} | yes}} | protection-reason = Noen maler og grensesnittsider er permanent beskyttet på grunn av synlighet. Artikler beskyttes midlertidig ved [[Wikipedia:Redigeringskrig|redigeringskriger]], men til enhver tid kan de fleste artikler redigeres av hvem som helst. | main-page-links = yes | template-links = yes | who-can-edit = En [[Wikipedia:Administratorer|administrator]] | request-type = full }} </pre> === Result === {{protected page text | protection-message = Denne siden er for tiden [[Wikipedia:Protection policy#Full protection|beskyttet]] og kan kun redigeres av [[Wikipedia:Administratorer|administratorer]]. | suggestions = {{#ifexist: {{FULLPAGENAME}} | yes}} | protection-reason = Noen maler og grensesnittsider er permanent beskyttet på grunn av synlighet. Artikler beskyttes midlertidig ved [[Wikipedia:Redigeringskrig|redigeringskriger]], men til enhver tid kan de fleste artikler redigeres av hvem som helst. | main-page-links = yes | template-links = yes | who-can-edit = En [[Wikipedia:Administratorer|administrator]] | request-type = full }} <includeonly>{{#ifeq:{{SUBPAGENAME}}|sandkasse|| <!-- Categories go here, and interwikis go in Wikidata --> }}</includeonly>
Redigeringsforklaring:
Merk at alle bidrag til Wikisida.no anses som frigitt under Creative Commons Navngivelse-DelPåSammeVilkår (se
Wikisida.no:Opphavsrett
for detaljer). Om du ikke vil at ditt materiale skal kunne redigeres og distribueres fritt må du ikke lagre det her.
Du lover oss også at du har skrevet teksten selv, eller kopiert den fra en kilde i offentlig eie eller en annen fri ressurs.
Ikke lagre opphavsrettsbeskyttet materiale uten tillatelse!
Avbryt
Redigeringshjelp
(åpnes i et nytt vindu)
Forhåndsvis en side som bruker denne malen
Denne siden er medlem av 1 skjult kategori:
Kategori:Sider hvor ekspansjonsdybden er overskredet
Navigasjonsmeny
Personlige verktøy
Ikke logget inn
Brukerdiskusjon
Bidrag
Opprett konto
Logg inn
Navnerom
Mal
Diskusjon
norsk bokmål
Visninger
Les
Rediger kilde
Vis historikk
Mer
Navigasjon
Forside
Siste endringer
Tilfeldig side
Hjelp til MediaWiki
Verktøy
Lenker hit
Relaterte endringer
Spesialsider
Sideinformasjon