Skip to content

Commit

Permalink
Merge pull request moinwiki#1752 from UlrichB22/template
Browse files Browse the repository at this point in the history
Remove ACL from help-en/TemplateSample
  • Loading branch information
RogerHaase authored Sep 5, 2024
2 parents 5e46430 + 9152635 commit 7899ba7
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
12 changes: 9 additions & 3 deletions src/moin/help/help-en/TemplateSample.data
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
= Template Sample =

Templates are a tool for adding boilerplate text and meta data to new items. They are useful when a wiki will have many pages with a similar format.
Templates are a tool for adding boilerplate text and meta data to new items.
They are useful when a wiki will have many pages with a similar format.

Under MoinMoin 2, any item having the tag `template` is a template. Under MoinMoin 1.9.x, any page ending in `Template` was a template.
Under MoinMoin 2, any item having the tag 'template' is a template.
Under MoinMoin 1.9.x, any page ending in 'Template' was a template.

Templates are specific to a content type. This template can only be used to create new `text/x.moin.wiki` items. To use this template, create a new moin wiki item and choose the link with the template's name rather than the `create this item from scratch` link.
Templates are specific to a content type and namespace.
This template can only be used to create new 'text/x.moin.wiki' items in namespace help-en.
To use a template, create a new moin wiki item and choose the link with a template's name rather than the 'create this item from scratch' link.

Please be aware that the ACL, the summary and the tags are also copied from the template.

## Templates may have hidden instructions for editors:
## If you are in the process of creating a new item using this template,
Expand Down
14 changes: 7 additions & 7 deletions src/moin/help/help-en/TemplateSample.meta
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
{
"acl": "BadGuy: All:read,write",
"action": "SAVE",
"address": "127.0.0.1",
"comment": "",
"contenttype": "text/x.moin.wiki;charset=utf-8",
"dataid": "9af704f331ec4119bb02f8e122fa97d7",
"dataid": "7a823b24a8844a3385d926beac343bf5",
"externallinks": [],
"itemid": "096937b50a2749ea80fd802edac18cfe",
"itemlinks": [],
"itemtransclusions": [],
"itemtype": "default",
"mtime": 1681742420,
"language": "en",
"mtime": 1725480945,
"name": [
"TemplateSample"
],
"name_old": [],
"namespace": "help-en",
"rev_number": 1,
"revid": "c6ec78f049904a759be28c010d0e018a",
"sha1": "a90c349ac607dfc23d96f940e586b5f17d458e0d",
"size": 891,
"summary": "this page created using SampleTemplate",
"revid": "de0ef2901135443d81fec1fbe89207c4",
"sha1": "0b4db0dab744e30deda45908e0727a0e49d8cafa",
"size": 1018,
"summary": "This page has been created using TemplateSample",
"tags": [
"template",
"coffee",
Expand Down

0 comments on commit 7899ba7

Please sign in to comment.